package com.paginasenlanube.model;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;


import javax.persistence.Table;

@Entity
@Table(name = "page")
public class Page implements Serializable{
	
 
  /**
	 * 
	 */
  private static final long serialVersionUID = 1L;
  private long id;
  private String name;
  private String template;
  private int position;
  private boolean showPage;
  private long menu_id;
  private String pageType;

 
  
  public Page(){
	  
  }
  
  public Page(String name, String template, int position, boolean showPage, long menu){
	  this.name = name;
	  this.setTemplate(template);
	  this.position = position;
	  this.setShowPage(showPage);
	  this.setMenu_id(menu);
  }
  
  @Column(name = "name")
  public String getName() {
    return name;
  }

  public void setName(String value) {
    name = value;
  }

  @Id
  @GeneratedValue
  @Column(name = "id")
  public long getId() {
    return id;
  }

  public void setId(long value) {
    id = value;
  }

  @Column(name = "position")
  public int getPosition() {
    return position;
  }

  public void setPosition(int value) {
    position = value;
  }

  @Column(name = "showPage")
  public boolean isShowPage() {
	return showPage;
  }

  public void setShowPage(boolean showPage) {
	this.showPage = showPage;
  }

public long getMenu_id() {
	return menu_id;
}

public void setMenu_id(long menu_id) {
	this.menu_id = menu_id;
}

public String getTemplate() {
	return template;
}

public void setTemplate(String template) {
	this.template = template;
}

public String getPageType() {
	return pageType;
}

public void setPageType(String pageType) {
	this.pageType = pageType;
}




 

}
